package com.jbit.hxy.enums;

import java.awt.*;

public enum WxUserStatusEnum {
    NORMAL(0,"正常"),
    LOCKED(1,"锁定")
    ;
    private int value;
    private String label;

    private WxUserStatusEnum(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static String getLabel(int value) {
        for (WxUserStatusEnum c : WxUserStatusEnum.values()) {
            if (c.value == value) {
                return c.label;
            }
        }
        return "";
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
